package main

import "fmt"

func A() {
	defer A1()
	//defer A2()
	panic("panic A1")
}

func A1() {
	fmt.Println("A1")
}

func A2() {
	defer B1()
	panic("A2")
}

func B1() {
	p := recover()
	fmt.Println(p)
	fmt.Println(111)
}

func main() {
	A()
}